package com.jason.basicandroid.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

public class AIDLService1 extends Service {
	private static final String TAG = "StockQuoteService";
	
	public class AIDLService1Impl extends IAIDLService1.Stub {
		@Override
		public double getStockQuoter(String ticker) throws RemoteException {
			return 20.0;
		}
		
	}@Override 
    public void onCreate() { 
        super.onCreate(); 
        Log.v(TAG, "onCreate() called"); 
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        Log.v(TAG, "onDestroy() called"); 
    } 
 
    @Override 
    public void onStart(Intent intent, int startId) { 
        super.onStart(intent, startId); 
        Log.v(TAG, "onStart() called"); 
    } 
 
    @Override 
    public IBinder onBind(Intent intent) 
    { 
        Log.v(TAG, "onBind() called"); 
        return new AIDLService1Impl(); 
    } 
}